.md5-generator {
  max-width: 560px;
}

.input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-field {
  width: calc(100% - 22px); /* Subtract padding and border */
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
  outline: none; /* Remove default outline */
}

  
.md5-history {
  margin-top: 20px;
}

.md5-history h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #333;
}

.md5-item {
  display: flex;
  align-items: center; /* 垂直居中 */
  list-style-type: none;
  padding: 10px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
}
  
.md5-item:last-child {
  border-bottom: none;
}
  
.md5-item .hash {
  /* 假设 .hash 是 hash 值对应的 class，如果原来没有，需要给 hash 值添加这个 class */
  flex: 1; /* 占据剩余空间 */
  word-wrap: break-word; /* 防止长 hash 值溢出 */
  overflow: hidden; /* 隐藏超出部分 */
  text-overflow: ellipsis; /* 如果超出，显示省略号 */
  white-space: nowrap; /* 禁止换行 */
  margin-right: 4px; /* 与时间戳之间保持一定距离 */
}
  
.md5-item .timestamp {
  /* 假设 .timestamp 是时间戳对应的 class，如果原来没有，需要给时间戳添加这个 class */
  color: #777; /* 时间戳颜色稍浅 */
  font-size: 14px; /* 保持与 hash 值相同的字体大小 */
}

.show-original-button {
  padding: 5px 10px;
  font-size: 14px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.show-original-button:hover {
  background-color: #0056b3;
}

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.dialog-close-button {
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.dialog-close-button:hover {
  background-color: #0056b3;
}